/ Assembly List / LJCNetCommon / NetCommon / TextBytesToBase64

Namespace - LJCNetCommon


Parameters
bytes - The Text byte array.

Returns

The Base64 string.

Syntax

C#
public static String TextBytesToBase64(Byte[] bytes)

Encodes a Text byte array to a Base64 value. (E)

Example

C#
using LJCNetCommon;
        
// Encodes a Text byte array to a Base64 value.
public static void TextBytesToBase64()
{
    // Setup
    byte[] TextBytes = NetCommon.TextToBytes("Text");

    // Encodes a Text byte array to a Base64 value.
    string base64 = NetCommon.TextBytesToBase64(TextBytes);

    // Check the text.
    string text = NetCommon.Base64ToText(base64);
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.